package route

import (
	"github.com/gin-gonic/gin"
	"zsgGin/utils/mqtt"
	"zsgGin/utils/socket"
)

func RoutingGroup(r *gin.Engine)  {
	//r.Use(middleware.LoggerToFile())    //记录日志
	groupV1:=r.Group("v1")   //v1路由组
	{
		/*
			公共的接口(文件上传,文件访问,下载)
		*/
		PublicRoute(groupV1)
		//websocket 路由
		socket.SocketRoute(groupV1)
		//mqtt 路由
		mqtt.MqttRoute(groupV1)

	}

	//不需要验证的路由
	r.POST("/t", func(g *gin.Context) {

	})






}